package com.psnoted.backend.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 更新密码数据响应DTO
 *
 * @author PSNoted Team
 * @version 1.0.0
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdatePasswordsResponse {

    private boolean success;
    private String syncTime;
    private EncryptedStorageData conflicts;

    // 构造函数
    public UpdatePasswordsResponse() {}

    public UpdatePasswordsResponse(boolean success, String syncTime) {
        this.success = success;
        this.syncTime = syncTime;
    }

    public UpdatePasswordsResponse(boolean success, String syncTime, EncryptedStorageData conflicts) {
        this.success = success;
        this.syncTime = syncTime;
        this.conflicts = conflicts;
    }

    // Getter和Setter方法
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getSyncTime() {
        return syncTime;
    }

    public void setSyncTime(String syncTime) {
        this.syncTime = syncTime;
    }

    public EncryptedStorageData getConflicts() {
        return conflicts;
    }

    public void setConflicts(EncryptedStorageData conflicts) {
        this.conflicts = conflicts;
    }

    @Override
    public String toString() {
        return "UpdatePasswordsResponse{" +
                "success=" + success +
                ", syncTime='" + syncTime + '\'' +
                ", conflicts=" + conflicts +
                '}';
    }
}